<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>


<style>
<!--
  td{
      vertical-align: top;
  }
  
  
    .btn{
      width:90px;
      height:30px;
      font-size:20px; 
  }
  -->
  
</style>

<form name='form1' method="post" target='result' action='result.jsp'>

<input type='hidden' name='op'>

connectionstr <input type=text name="connstr"  value="127.0.0.1:2181" style='width:500px'>   <br>
<input type="button"  value="connect" onclick="run('connect')"> 
<input type="button"  value="disConnect"  onclick="run('disConnect')"> 
<input type="button"  value="clientInfo" onclick="run('clientInfo')"> 

<br>
path <input type=text name="path" value="/" style='width:500px' > <br>
  
<input type="button"  value="data" onclick="run('data')"> 

<input type="button"  value="child" onclick="run('child')"> 

<input type="button"  value="childAndSelf" onclick="run('childAndSelf')"> 


<br>

createMode 
<select name='createMode'>
   <option>PERSISTENT</option>
   <option>PERSISTENT_SEQUENTIAL</option>
   <option>EPHEMERAL</option>
   <option>EPHEMERAL_SEQUENTIAL</option>
   
</select>

data 
<input type=text name="data"> 

version 
<input type=text name="version"> <br>


<input type="button"  value="create" onclick="run('create')"> 
<input type="button"  value="update(setData)" onclick="run('update')"> 
<input type="button"  value="delete" onclick="run('delete')"> 




</form>


<hr>

<iframe name='result' width='99%' height='99%' border=0></iframe>


<script>
function run(op){
	// alert("op="+op);
	form1.op.value=op;
    // alert("form1.op.value="+form1.op.value);
    
    form1.submit();
		
}

</script>

